<?php

/**
 * helper
 * 
 * @author
 * @version 
 */
namespace Application\View\Helper;

use Zend\View\Helper\AbstractHelper;

/**
 * View Helper
 */
class RechercheFormHelper extends AbstractHelper {
	
	public function __invoke() {
				
		$navHtml = $this->retournQuestion_Pays();

		$navHtml .= $this->retournQuestion_Regions();

		$navHtml .= $this->retournQuestion_Activites();
		return $navHtml;
	}

	private function retournQuestion_Pays () {
		$renderQuestionHtml = <<<EOQ
			<div ng-show="filtres.paysUtil.length" class="tgFiltre">Pays</div>

			<ul>
				<li ng-class="{ 'actif': lienActif }" ng-lienactif="{{ lienActif }}" filtres ng-repeat="(key, pays) in filtres.paysUtil" ng-propriete="paysId" ng-value="{{pays.idPays}}">{{pays.libellePays}}</li>
			</ul>
EOQ;

		return $renderQuestionHtml;
	}

	private function retournQuestion_Regions () {
		$renderQuestionHtml = <<<EOQ
			<div ng-show="filtres.regionsUtil.length" class="tgFiltre">Régions</div>

			<ul>
				<li ng-class="{ 'actif': lienActif }" ng-lienactif="{{ lienActif }}" filtres ng-repeat="(key, region) in filtres.regionsUtil" ng-propriete="regionId" ng-value="{{region.idRegions}}">{{region.libelleRegions}}</li>
			</ul>
EOQ;

		return $renderQuestionHtml;
	}

	private function retournQuestion_Activites () {
		$renderQuestionHtml = <<<EOQ
			<div ng-show="filtres.activitesUtil.length" class="tgFiltre">Activités</div>

			<ul>
				<li ng-class="{ 'actif': lienActif }" ng-lienactif="{{ lienActif }}" filtres ng-repeat="(key, activite) in filtres.activitesUtil" ng-propriete="activiteId" ng-value="{{activite.idAS}}">{{activite.libelleAS}}</li>
			</ul>
EOQ;

		return $renderQuestionHtml;
	}













}
